//
//  VoicePlayManager.h
//  DoctorYL
//
//  Created by Lisa on 16/11/2.
//  Copyright © 2016年 yuntai. All rights reserved.
//

#import <Foundation/Foundation.h>

@class VoicePlayManager;

@protocol VoicePlayManagerDelegate <NSObject>
/**
 *  结束播放
 *
 *  @param voicePlayManager
 */
- (void)voiceEndPlayVoicePlayManager:(VoicePlayManager *)voicePlayManager;


@end


/**
 *  语音播放操作类
 */
@interface VoicePlayManager : NSObject

@property (nonatomic, assign)id<VoicePlayManagerDelegate>delegate;

+ (VoicePlayManager *)shareInstance;


/**
 *  播放本地文件
 *
 *  @param filePath
 */
- (BOOL)preparePlayWithFilePath:(NSString *)filePath;

/**
 *  播放在线音频
 *
 *  @param connectUrlStr
 */
- (BOOL)preparePlayWithConnectUrlStr:(NSString *)connectUrlStr;

/**
 *  语音停止播放
 */
- (void)stopVoicePlay;
@end
